package models;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

import play.db.jpa.Model;
import utils.DateHelper;

@Entity
public class Auditoria extends Model {

	@ManyToOne
	public SubBase subbase;
	
	public String descripcion;
	
	@ManyToOne
	public User user;
	
	public Date fecha;
	
	public int registros;
	
	public String getFechaHora(){
		return DateHelper.getFechaHora(fecha);
	}
}
